import { createRouter, createWebHashHistory } from 'vue-router'

const router = createRouter({
  history: createWebHashHistory(), //路由模式
  routes: [
    //路由规则
    {
      path: '/',
      component: () => import('@/views/Layout/index.vue'),
    },
    {
      path: '/login',
      component: () => import('@/views/Login/index.vue'),
    },
  ],
})
export default router
